package com.jic.order.mapper;

import com.jic.order.request.OrderRouteSplitWarehouseConditionRequest;
import com.jic.order.response.OrderRouteSplitWarehouseConditionResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 路由分仓规则匹配条件表
 * @author : 
 * @email : 
 * @since : 2020-03-04 01:44:18
 * @version : v1.0.0
 */
@Mapper
public interface  OrderRouteSplitWarehouseConditionMapper {

    long insert(OrderRouteSplitWarehouseConditionRequest orderRouteSplitWarehouseCondition);

    long delete(Long id);

    long update(OrderRouteSplitWarehouseConditionRequest orderRouteSplitWarehouseCondition);

    OrderRouteSplitWarehouseConditionResponse queryByPrimaryKey(Long id);

    List<OrderRouteSplitWarehouseConditionResponse> query(OrderRouteSplitWarehouseConditionRequest orderRouteSplitWarehouseCondition);

    List<OrderRouteSplitWarehouseConditionResponse> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("orderRouteSplitWarehouseCondition") OrderRouteSplitWarehouseConditionRequest orderRouteSplitWarehouseCondition);

    long queryPageCount(OrderRouteSplitWarehouseConditionRequest orderRouteSplitWarehouseCondition);

    int insertForeach(List<OrderRouteSplitWarehouseConditionRequest> list);
}